﻿<Router AppAssembly="@typeof(App).Assembly">
    <Found Context="routeData">
        <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
        <FocusOnNavigate RouteData="@routeData" Selector="h1" />
    </Found>
    <NotFound>
        <PageTitle>Not found</PageTitle>
        <LayoutView Layout="@typeof(MainLayout)">
            <div style="display: flex; align-content: center; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 15%">
                <div>
                    <h1 style="color: rgb(213, 216, 220);">不存在的页面</h1>
                    <b style="color: rgb(213, 216, 220);">你为什么会在这？这里不是你该来的地方，回去吧，乖！</b>
                </div>

                <style>
                    html {
                        background: rgb(231, 76, 60);
                    }
                </style>
            </div>
        </LayoutView>
    </NotFound>
</Router>
